﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="GB2312">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" id="viewport">
		<title>账号提现-迅泊达</title>
		<link rel="shortcut icon" href="favicon.ico"/>
		<link rel="stylesheet" href="css/base.css" />
		<link rel="stylesheet" href="css/account-withdrawal.css" />
		<link rel="stylesheet" href="font/fanhui/iconfont.css" />
		<script src="js/jquery-1.11.2.min.js"></script>
		<script src="js/base.js"></script>
		<script src="js/xbddai.js"></script>
		<script src="js/51size.js"></script>
	</head>
	<body>
		<!--头部开始-->
		<header class="clearfix">
			<div class="header clearfix">
				<ul>
					<li>
						<a href="my-account.html">
							<i class="iconfont left-icon">&#xe64c;</i>
							<em>返回</em>
						</a>
					</li>
					<li>账号提现</li>
					<li><a href="withdrawal-record.html">提现记录</a></li>
				</ul>
			</div>
		</header>
		
		<!--头部结束-->
		<!--主体部分开始-->
		<div class="information">
			<span id="realname"></span>
			<p><em id="balance">0.0</em><i>元</i></p>
			<u>可用余额</u>
		</div>
		
		<div class="alert">
			<span>可提现银行：</span>
			<p >
				<em id="bankName"></em>
				<!--<i>工商银行小东门支行</i>--><br />
				<u id="bankCardNo"><!--6212 2632 0201 0103 231--></u>
			</p>
		</div>
		<div class="pay-form">
			<form>
				<div class="number the-amount-of ">
					<label for="num">提现金额&nbsp;&nbsp;&nbsp;</label>
					<input type="text" id="amount" />
				</div>
				<div class="number pay">
					<label for="num">支付密码&nbsp;&nbsp;&nbsp;</label>
					<input type="password" id="pwd" />
				</div>
				<div class="number phone-auth-code">
					<label for="num">手机验证码</label>
					<input type="password" id="captcha" />
					<span class="msgs">获取短信验证码</span>
				</div>
			</form>
		</div>
		<p class="prompt">
			<em>提醒：</em>短信发送成功后可能会有1-2分钟的延迟，请等待。如有问题请联系客服
		</p>
		<div class="sbt">
			<input type="button" value="确认提交"  id="submit"/>
		</div>
		<div class="prompt-explanation">
			<span>提现说明</span>
			<em></em>
			<p class="account-withdrawa-down">
				1、超过当月免提现笔数，将按每笔2元收取手续费。<br>
				2、提现金额不能小于100元<br>
				3、我们将在1至3个工作日(国家节假日除外)之内将钱转入您网站上填写的提现银行帐号。
			</p>
		</div>
		<!--主体部分结束-->
	</body>
<script type="text/javascript">
$(function() {
	var personal=JSON.parse(localStorage.getItem('personal'));
	if(personal==null){
		alert('您还没有登录，请登录！！！');
		window_href('login.html');
	} else{
		var uid=personal.uid;
		//读取提现个人信息
		$.ajax({
			type: 'post',
			dataType: 'JSON',
			async: false,
			url: baseUrl + "/app/withdraw/info",
			data:{uid:uid},
			success: function(result) {
				var code = result["code"];
				var msg = result["msg"];
				if (code == '-1') {
					var entity = result["entity"];
					var realname = entity["user"]["realname"] || "";
					if(realname != "") {
						realname = realname.substring(0,1) + "**";
						$("#realname").text(realname);
					}
					$("#balance").text(changePrice2money(entity["account"]["balance"] || 0.0));
					$("#bankName").text(entity["bankCard"]["bankCardName"] || "");
					var cardNo = entity["bankCard"]["cardNo"] || "";
					if(cardNo != "") {
						$("#bankCardNo").text(formatBankCardNo(cardNo));
					}
				}
			}
		});
	}
});
</script>
</html>
